package shuzi.data;

import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import shuzi.model.Brand;
import shuzi.model.BrandPhone;
import shuzi.model.Dealer;
import android.graphics.Bitmap;

public class Database {
	/**log的标记    */
	public static final String TAG = "LUNG_PHONE";
	/**刷新gridview的what    */
	public static final int HANDLER_REFRESH_GRIDVIEW = 0;
	/**刷新错误    */
	public static final int HANDLER_REFRESH_ERROR = HANDLER_REFRESH_GRIDVIEW+1;
	/**刷新listview的what    */
	public static final int HANDLER_REFRESH_LISTVIEW = HANDLER_REFRESH_ERROR+1;
	/**无数据的what    */
	public static final int HANDLER_REFRESH_NODATA = HANDLER_REFRESH_LISTVIEW+1;
	/**判断是否在滑动    */
	public static boolean isBusy = false;
	/** 内存缓存   */
	public static Map<String, SoftReference<Bitmap>> mLinkedHashMap = null;
	/**  懒得改，存内存里面好了   */
	public static List<Brand> brandList = null;
	/** 是否是今日推荐   */
	public static final String IS_RECOMMEND = "is_recommend";
	/** 已选   */
	public static List<BrandPhone> yiXuanList = new ArrayList<BrandPhone>();
	/** 已选键值对   */
	public static Map<String, BrandPhone> yiXuanMap = new HashMap<String, BrandPhone>();
	/** 白色   */
	public static final int WHITE = 0;
	/** 黑色   */
	public static final int BLACK = WHITE+1;
	/** 其它色   */
	public static final int OTHER = BLACK+1;
	/**类型名称    */
	public static final String typeId = "typeId";
	/** 品牌id   */
	public static final String brandId = "brandId";
	/** 品牌名称   */
	public static final String name = "name";
	public static Dealer dealer = null;
	/** 自己的手机号码   */
	public static final String PHONE_NUMBER ="phone_number";
	/** 经销商的手机号码   */
	public static final String DELIVER_NUMBER ="deliver_number";
	/**经销商的地址    */
	public static final String DELIVER_ADDRESS ="deliver_address";
	/** 文件名   */
	public static final String LOGIN_FILE_NAME = "file";
	/**手机详情    */
	public static final int PHONE_INFO = 100;
	/**品牌详情    */
	public static final int BRAND_INFO = PHONE_INFO+1;
	public static class Config {
		public static final boolean DEVELOPER_MODE = false;
	}
}
